<h2>Inventarisasi Barang Lainnya </h2>
<br clear="all"/>

<?php echo form_open($this->uri->uri_string()) ?>
<?php echo form_dropdown("kategori", $this->referensi->get_list_referensi('sapras_kategori_barang','id','kategori'),null,null,array('class_label'=>'clear','label'=>'Kategori : ')) ?>
<input type="submit" class="button" value="Tampilkan"/>
<?php echo form_close() ?>
<hr>
<br clear="all">
<table class="table tablepager">
    <thead>
        <tr>
            <th width="10px">No.</th>
            <th width="0px">Kode Barang</th>
            <th width="0px">Nama Barang</th>
            <th width="0px">Nomor Register</th>
            <th width="0px">Merek/Tipe</th>
            <th width="0px">Kondisi</th>
            <th width="0px">Jumlah</th>
            <th width="0px">Keterangan</th>
            <th width="120px">Aksi</th>
        </tr>
    </thead>
    <tbody>
        <?php $no=1 ?>
        <?php foreach($data as $detail): ?>
        <tr>
            <td class="center"><?php echo $no++ ?></td>
            <td ><?php echo $detail['kode_barang']?></td>
            <td ><?php echo $detail['nama_barang']?></td>
            <td ><?php echo $detail['nomor_register']?></td>
            <td ><?php echo $detail['merek_tipe']?></td>
            <td ><?php echo $detail['kondisi']?></td>
            <td class="right"><?php echo $detail['jumlah']?></td>
            <td ><?php echo $detail['keterangan']?></td>
            <td class="center">
                    <?php echo anchor("sapras/barang/detail/".$detail['kode_barang'],"detail") ?> |
                    <?php echo anchor("sapras/barang/edit/".$detail['kode_barang'],"edit") ?> |
                    <?php echo anchor("sapras/barang/delete/".$detail['kode_barang'],"delete",array("onclick"=>"return confirm('Apakah Anda yakin akan menghapus data ini?')")) ?>
            </td>
        </tr>
        <?php endforeach ?>
    </tbody>
</table>
<?php $this->load->view("elements/pager") ?>
<?php echo anchor("sapras/barang/add/".$_POST['kategori'], "Tambah Data", array("class"=>"button")) ?>
